﻿#ifndef CURRENTPARAMWIDGET_H
#define CURRENTPARAMWIDGET_H

#include <QObject>
#include <QWidget>
#include <QTabWidget>
#include <QGridLayout>
#include "currentadjwidget.h"
#include "currentdesignwidget.h"
#include "currenttestwidget.h"

class QCurrentParamWidget : public QWidget
{
    Q_OBJECT
public:
    explicit QCurrentParamWidget(QWidget *parent = nullptr);

    void InitUI();

    void rcvFrameData(st_rcvdata rcvdata);

signals:
    void signal_startTest(int i32Axis,int workmode,int data,int data1);

    void signal_setpid(int i32AxisNo,int nType,float lfkp,float lfki,float lfkd);//ntype 1-电流环 2-速度环 3-位置环



public slots:

private:
    QTabWidget* _pTabWidget;

    QCurrentAdjWidget* _pCurrentAdjWidget;
    QCurrentDesignWidget* _pCurrentDesignWidget;
    QCurrentTestWidget* _pCurrentTestWidget;

    st_rcvdata _rcvFramedata;
};

#endif // CURRENTPARAMWIDGET_H
